package builder.source;

/**
 * @author Chen Guang
 * @date 2019/4/9 0009 下午 13:56
 */
public class Test {
    public static void main(String[] args) {
        Director director = new Director();
        AbstractBuilder builderA = new ConcreteBuilderA();
        director.construct(builderA);
        Product aResult = builderA.getResult();
        aResult.show();

        AbstractBuilder builderB = new ConcreteBuilderB();
        director.construct(builderB);
        Product bResult = builderB.getResult();
        bResult.show();
    }
}
